function renderHeader(value, cellmeta, record, rowIndex, columnIndex, store) {
	var fieldName = cm.getDataIndex(columnIndex);
	if (fieldName == 'CAR_NO') {
		var resultString = String.format('<b><a href="' + context
						+ '/app/car/neu.jsp?id={0}">{1}</a></b>',
				record.data['CAR_ID'], value);

		return resultString;
	} else if (fieldName == 'CAR_DATE') {
		return formatDate(value);
	} else if (fieldName == 'CAR_STATUS') {
		if (value == '0') {
			return '正常';
		} else if (value == '1') {
			return '通过';
		} else if (value == '-1') {
			return '停用';
		}
	} else if (fieldName == 'SP') {
		var str = '<a href="javascript:handleStatus(\'' + record.data['CAR_ID']
				+ '\',\'' + record.data['CAR_NO']
				+ '\', \'-1\', \'停用\');">停用</a>';

		if (record.data['CAR_STATUS'] == '-1') {
			str = '<a href="javascript:handleStatus(\'' + record.data['CAR_ID']
					+ '\',\'' + record.data['CAR_NO']
					+ '\', \'0\', \'启用\');">启用</a>';
		}

		return str;
	}
	return value;
}

/**
 * 添加“过滤按钮”
 * 
 * @param {}
 *            grid
 */
function addMeMix(key) {
	var tbar = Ext.getCmp(key + '_toolbar');

	tbar.add('-', {
				text : '新增车辆信息',
				iconCls : 'addinfo',
				handler : function() {
					window.location.href = context + '/app/car/neu.jsp';
				}
			});

}

/**
 * 修改状态
 */
function handleStatus(id, no, status, msg) {
	Ext.MessageBox.confirm('提示', '确定' + msg + '[' + no + ']车辆？', function(e) {
				if (e == "yes") {
					var params = {};
					params.CAR_ID = id;
					params.CAR_STATUS = status;
					updateColumn('APP_CAR', 'single', '', params, null,
							function() {
								storeReload(0);
							});
				}
			});
}

function handleDel() {
	Ext.MessageBox.confirm('提示', '确定删除[' + no + ']车辆？', function(e) {
				if (e == "yes") {
					Ext.MessageBox.wait('提交删除过程中...');
					Ext.Ajax.request({
								// 请求地址
								url : context + "/system/baseworkdelete.do",
								params : {
									tableNames : tableNames,
									handleTypes : handleTypes,
									counterNames : counterNames,
									CAR_ID : id,
									CAR_STATUS : status
								},
								// 提交参数组
								fileUpload : true,
								form : 'form1',
								scope : 'form1',
								// 成功时回调
								success : function(response, options) {
									// 获取响应的json字符串
									Ext.MessageBox.hide();

									var json = response.responseText;
									var o = Ext.util.JSON.decode(json);

									if (o.success) {
										alert("删除成功！");

										if (forwardFunc != null) {
											forwardFunc();
										}
									} else {
										Ext.Msg.alert('提示', '删除失败！');
									}
								}
							});
				}
			});
}